package com.example.hystrixDemo.service.impl;

import com.example.hystrixDemo.service.OrderService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderServiceImpl implements OrderService {
    Logger logger = LoggerFactory.getLogger(OrderServiceImpl.class);

    @Override
    public String queryByOrderId() {
        logger.info("OrderServiceImpl.queryByOrderId,当前线程:{}", Thread.currentThread().getName());
        return "queryByOrderId success";
    }
}
